package com.gitee.lw114514.webapp_memorandium.service.DelService.Impl;

import com.gitee.lw114514.webapp_memorandium.dao.TaskDao;
import com.gitee.lw114514.webapp_memorandium.service.DelService.DelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DelServiceImpl implements DelService {
    //1.引入dao层
    @Autowired
    private TaskDao taskDao;

    @Override
    public Boolean deleteTask(Integer taskId, Boolean taskStatus) {
        // 调用DAO层删除任务
        return taskDao.deleteTaskById(taskId, taskStatus);
    }
}


